package com.ruoyi.kk.vehicle.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kk.vehicle.mapper.KkUserVehicleInfoMapper;
import com.ruoyi.kk.vehicle.domain.KkUserVehicleInfo;
import com.ruoyi.kk.vehicle.service.IKkUserVehicleInfoService;

/**
 * 用户车辆信息Service业务层处理
 * 
 * @author kk
 * @date 2025-06-09
 */
@Service
public class KkUserVehicleInfoServiceImpl implements IKkUserVehicleInfoService 
{
    @Autowired
    private KkUserVehicleInfoMapper kkUserVehicleInfoMapper;

    /**
     * 查询用户车辆信息
     * 
     * @param vehicleId 用户车辆信息主键
     * @return 用户车辆信息
     */
    @Override
    public KkUserVehicleInfo selectKkUserVehicleInfoByVehicleId(Long vehicleId)
    {
        return kkUserVehicleInfoMapper.selectKkUserVehicleInfoByVehicleId(vehicleId);
    }

    /**
     * 查询用户车辆信息列表
     * 
     * @param kkUserVehicleInfo 用户车辆信息
     * @return 用户车辆信息
     */
    @Override
    public List<KkUserVehicleInfo> selectKkUserVehicleInfoList(KkUserVehicleInfo kkUserVehicleInfo)
    {
        return kkUserVehicleInfoMapper.selectKkUserVehicleInfoList(kkUserVehicleInfo);
    }

    /**
     * 新增用户车辆信息
     * 
     * @param kkUserVehicleInfo 用户车辆信息
     * @return 结果
     */
    @Override
    public int insertKkUserVehicleInfo(KkUserVehicleInfo kkUserVehicleInfo)
    {
        return kkUserVehicleInfoMapper.insertKkUserVehicleInfo(kkUserVehicleInfo);
    }

    /**
     * 修改用户车辆信息
     * 
     * @param kkUserVehicleInfo 用户车辆信息
     * @return 结果
     */
    @Override
    public int updateKkUserVehicleInfo(KkUserVehicleInfo kkUserVehicleInfo)
    {
        return kkUserVehicleInfoMapper.updateKkUserVehicleInfo(kkUserVehicleInfo);
    }

    /**
     * 批量删除用户车辆信息
     * 
     * @param vehicleIds 需要删除的用户车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteKkUserVehicleInfoByVehicleIds(Long[] vehicleIds)
    {
        return kkUserVehicleInfoMapper.deleteKkUserVehicleInfoByVehicleIds(vehicleIds);
    }

    /**
     * 删除用户车辆信息信息
     * 
     * @param vehicleId 用户车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteKkUserVehicleInfoByVehicleId(Long vehicleId)
    {
        return kkUserVehicleInfoMapper.deleteKkUserVehicleInfoByVehicleId(vehicleId);
    }
}
